package com.cm.projectx.service.impl;

import com.cm.projectx.entity.dkIndicatorType;
import com.cm.projectx.entity.dkTemplateTypes;
import com.cm.projectx.mapper.dkTemplateTypesMapper;
import com.cm.projectx.service.IdkTemplateTypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class TemplateTypesServiceImpl implements IdkTemplateTypesService {

    @Autowired
    private dkTemplateTypesMapper mapper;

    @Override
    public List<dkTemplateTypes> getTemplateTypeList() {
        return mapper.selectList(null);
    }

    @Override
    public List<dkIndicatorType> getByTemplateCode(String templateCode) {
        return mapper.setlectBytemplateCode(templateCode);
    }
}
